<?php
/** 
* Callback used by RssHelper::items()
*/
function rss_transform($item) {
    return array('title' => $item['Song']['title'],
                'link' => '/songs/view/'.$item['Song']['id'],
                'guid' => '/songs/view/'.$item['Song']['id'],
		'description' => 'Added by '.$item['User']['username'].' to '.$item['Category']['title'],
                'pubDate' => $item['Song']['date'],              
                );
}
 
 $this->set('items',  $rss->items($songs, 'rss_transform'));
?>

